<hr>
<table class="list">
  <thead>
    <tr>
      <th>商品条形码</th>
      <th>商品名称</th>
      <th>所属分类</th>
      <th>售价(元)</th>
      <th>库存</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="6">{/$pagebar/}</td>
    </tr>
  </tfoot>
  <tbody>
  
  {/section name=i loop=$goods/}
  <tr class="sn" rel="{/$goods[i].goods_sn/}">
    <td>{/$goods[i].goods_sn/}</td>
    <td>{/$goods[i].goods_name/}</td>
    <td>{/$goods[i].cat_name/}</td>
    <td><span class="red fb">{/$goods[i].out_price/}</span></td>
    <td>{/if $goods[i].stock gt $goods[i].warn_stock/}{/$goods[i].stock/}{/else/}<span class="red fb" title="低于最小库存">{/$goods[i].stock/}(缺)</span>{//if/}</td>
  </tr>
  {//section/}
    </tbody>
  
</table>
<script>
 $('tbody tr:even').addClass("alt-row"); </script>